<span class="buddy">
    <input type="hidden" name="buddyUserId" value="<?php echo $this->author->userId?>" />
    <?php if($this->isMyBuddy):?>
    <div class="buddy-box">
        <?php echo $this->partial('script_isbuddy-a.phtml', array());?>
    </div>
    <?php else:?>
    <div class="buddy-box">
        <?php echo $this->partial('script_nobuddy-a.phtml', array());?>
    </div>
    <?php endif;?>
</span>